<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%-- 引入公共的配置jsp页面 --%>
<%@ include file="/common/jsp/header.jsp"%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>事件编辑页面</title>
    <script src="${path}/conf/event_message.js"></script>
    <script src="js/event_edit.js"></script>
    <script type="text/javascript">
        var eventJson = ${eventJson};
    </script>
</head>
<body>
<div class="content">
    <div class="control-title">
        <div class="title_left">
            <span>
                <svg class="icon" aria-hidden="true">
                    <use xlink:href="#icon-biaoti"></use>
                </svg>
            </span>
            事件信息
        </div>
    </div>
    <div class="bombBox_condition">
        <div class="moreGroup">
            <div class="form-group">
                <label class="col-sm-3 control-label">事件分类</label>
                <div class="col-sm-9">
                    <select id="eventSort" class="form-control" checkData="NotNull">

                    </select>
                    <span class="redSign">*</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事件分级</label>
                <div id="eventTypeDiv" class="col-sm-9">
                    <select id="eventType" class="form-control" checkData="NotNull">
                        <option>请先选择事件分类...</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事件描述</label>
                <div class="col-sm-9">
                    <input id="eventDesc" type="text" class="form-control" value="${event.eventDesc}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事件owner</label>
                <div class="col-sm-9" id="eventOwnerDiv">
                    <select id="eventOwner" class="form-control" checkData="NotNull">

                    </select>
                    <span class="redSign">*</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事件威胁级别</label>
                <div class="col-sm-9">
                    <select id="threatLevel" class="form-control" checkData="NotNull">
                        <option value="">请选择...</option>
                        <option value="1">一级(高)</option>
                        <option value="2">二级(中)</option>
                        <option value="3">三级(低)</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">处理部门</label>
                <div class="col-sm-9">
                    <select id="eventDeptId" class="form-control" checkData="NotNull" onchange="decideEmailToAddress(this)">
                        <option value="">请选择...</option>
                        <option value="1">管理服务部</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否发送邮件</label>
                <div class="col-sm-9">
                    <input name="isSendEmail" type="radio" value="1"> 是
                    <input name="isSendEmail" type="radio" value="0"> 否
                </div>
            </div>
        </div>
    </div>
    <div id="email_title" class="control-title">
        <div class="title_left">
            <span>
                <svg class="icon" aria-hidden="true">
                    <use xlink:href="#icon-biaoti"></use>
                </svg>
            </span>
            邮件信息
        </div>
    </div>
    <div id="email_body" class="bombBox_condition">
        <div class="oneGroup">
            <div class="form-group textarea">
                <label class="col-sm-3 control-label">邮件收件人</label>
                <div class="col-sm-9">
                    <textarea id="emailToAddress" class="form-control" rows="1" placeholder="多个收件人地址请用逗号分割">${event.emailToAddress}</textarea>
                    <span class="redSign">*</span>
                </div>
            </div>
            <div class="form-group textarea">
                <label class="col-sm-3 control-label">邮件标题</label>
                <div class="col-sm-9">
                    <textarea id="emailTitle" class="form-control" rows="1">${event.emailTitle}</textarea>
                </div>
            </div>
            <div class="form-group textarea">
                <label class="col-sm-3 control-label">邮件内容</label>
                <div class="col-sm-9">
                    <textarea id="emailContent" class="form-control" rows="3">${event.emailContent}</textarea>
                </div>
            </div>
            <div class="clearfloat" style="clear: both"></div>
        </div>
    </div>
    <br/>
    <br/>
    <br/>
    <div class="btn_bottom">
        <div class="spanbtn">
            <button type="button" class="btn btn-info Keep press_btn1">保存</button>
            <button type="button" class="btn btn-warning Close press_btn2">关闭</button>
        </div>
    </div>
</div>
</body>
</html>

